<?php
$objRevisorTO = $this->vars['objRevisorTO'];
$filas = $this->vars['data_track']['list'];
$html = '';

if(!$filas){
	$html = '<tr><td colspan="2">No se encontraron registros</td></tr>';
}
else{
    $html = "<select id='track' name='track' class='required' size='1'>";
    $html .= "<option value=''>(Select a Track)</option>";
    foreach($filas as $fila){
        $html .= "<option ";
        if(isset ($this->vars['data_revisor'])) {
            if($fila->getIdTrack()==$this->vars['data_revisor11']['track']){                
                $html .= "selected";
            }
        } 
        if(isset ($objRevisorTO)) {
            if($fila->getIdTrack()==$objRevisorTO->getIdTrack()){
                $html .= "selected ";
            }
        }
        $html .= "value='".$fila->getIdTrack()."'>".utf8_encode($fila->getNombre())."</option>";
    }
    $html .= "</select>";
}
echo($html);

?>